'''
Created on Aug 5, 2012

@author: tel
'''
class Base(Exception):
    pass

class ConformerEmptyError(Base):
    '''
    at least one of the two residues being compared have no atoms in the relevant conformers
    '''
    def __init__(self, firstres, secondres):
        self.firstres = firstres
        self.secondres = secondres
        
class AtomMismatchError(Base):
    '''
    one of the atoms in an RMSD calculation don't match between conformers
    '''
    def __init__(self, firstatom, secondatom):
        self.firstatom = firstatom
        self.secondatom = secondatom